﻿using WMSUIMVC.Aubit;

namespace WMSUIMVC.DTO.Injure
{
    public class AddInjureDto:BaseDTO
    {
        /// <summary>
        /// 报损id
        /// </summary>
        public int InjureId { get; set; }
        /// <summary>
        /// 报损单号
        /// </summary>
        public string? InjureCode { get; set; }
        /// <summary>
        /// 报损类型
        /// </summary>
        public int? InjureType { get; set; }
        /// <summary>
        /// 关联订单号
        /// </summary>
        public string? MorderNumber { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string? MakePerson { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime? MarkTime { get; set; }
        /// <summary>
        /// 报损状态
        /// </summary>
        public int? InjureStart { get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
        public int? AuditStart { get; set; } = 0;
        /// <summary>
        /// 公司id
        /// </summary>
        public string? office_id { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public int? user_id { get; set; }

        public List<InjureDetail> injureDetails { get; set; }

    }

    public class InjureDetail
    {
        /// <summary>
        /// 报损产品id
        /// </summary>
        public int InProductId { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public int? ProductId { get; set; }
        /// <summary>
        /// 报损编号
        /// </summary>
        public string? InjureCode { get; set; }
        /// <summary>
        /// 报损数量
        /// </summary>
        public int? InjureNum { get; set; }
        /// <summary>
        /// 仓库id
        /// </summary>
        public int? StorehouseId { get; set; }


        /// <summary>
        /// 公司id
        /// </summary>
        public string? office_id { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public int? user_id { get; set; }
    }
}
